﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AlgoImpl
{
    public class DataNode : Node
    {
        private string m_Data;

        public DataNode(string id, eSideInGraph side, string data)
            : base(id, side)
        {
            m_Data = data;
        }

        public string Data 
        {
            get { return m_Data; }
            set { m_Data = value; } 
        }

        public override string ToString()
        {
            string toReturn = base.ToString();
            toReturn += string.Format("Data: {0} ", Data.ToString());

            return toReturn;
        }
    }
}
